package com.itesm.distribuidos.mexicantrain;

import java.io.Serializable;

public class Domino implements Serializable {
	private static final long serialVersionUID = 1L;
	private boolean isDouble;
	private boolean isFinal;
	private int sideA;
	private int sideB;
	private int user;

	public Domino(boolean type, int A, int B) {
		this.isDouble = type;
		this.isFinal = false;
		this.sideA = A;
		this.sideB = B;
		this.user = 0;
	}

	public boolean isDouble() {
		return this.isDouble;
	}

	public boolean isFinal() {
		return this.isFinal;
	}

	public void setFinal(boolean status) {
		this.isFinal = status;
	}

	public int getSideA() {
		return this.sideA;
	}

	public int getSideB() {
		return this.sideB;
	}

	public int getUser() {
		return user;
	}

	public void setSideA(int A) {
		this.sideA = A;
	}

	public void setSideB(int B) {
		this.sideB = B;
	}

	public void setUser(int player) {
		this.user = player;
	}
}
